package ophiux.wechatpay.sdk.test.medicalPay;

import ophiux.wechatpay.sdk.OphiuxWeChatPaySDKException;
import ophiux.wechatpay.sdk.client.DefaultMedicalPayClient;
import ophiux.wechatpay.sdk.client.IMedicalPayClient;
import ophiux.wechatpay.sdk.request.medicalPay.UnifiedOrderMedicalPayRequest;
import ophiux.wechatpay.sdk.response.medicalPay.UnifiedOrderMedicalPayResponse;

public class medicalpay_test {
	
	public static void main(String[] args) {
		IMedicalPayClient client = new DefaultMedicalPayClient("1nl5nz3y", "4850335347", "35a81677e006338d2d48c23b72926d645a676b26","http://r2diia.natappfree.cc/hipay/api/pay/jsApi/unifiedOrder");
		UnifiedOrderMedicalPayRequest req = new UnifiedOrderMedicalPayRequest();
		req.setOrderMoney("1");
        req.setOutTradeNo("2021032813141314");
        req.setOrderType("1");
        req.setPayType("1");
        req.setNotifyUrl("http://hehailong.yourhostiot.top:81/pay/callBack/notify");
		
		
		UnifiedOrderMedicalPayResponse resp = null;
		try {
			resp = client.executor(req);

		} catch (OphiuxWeChatPaySDKException e) {
			e.printStackTrace();
		}
		
		
	}

}
